home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Hyper / M-Md / MacApp™ Info.sit / MacApp™ info / MacApp™ info / card_28177.txt < prev    next >
Encoding:
Text File  |  1988-01-30  |  1.8 KB  |  75 lines

  1. -- card: 28177 from stack: in
  2. -- bmap block id: 29000
  3. -- flags: 0000
  4. -- background id: 4180
  5. -- name: Handling Mouse Clicks
  6. ----- HyperTalk script -----
  7. on arrowKey direction
  8.   if direction = "left" then
  9.     visual scroll right
  10.     go to prev card
  11.   else if direction = "right" then
  12.     visual scroll left
  13.     go to card "Error Messages"
  14.   else if direction = "up" then
  15.     visual dissolve
  16.     go to card "Chart"
  17.   end if
  18. end arrowKey
  19.  
  20.  
  21.  
  22. -- part 5 (button)
  23. -- low flags: 00
  24. -- high flags: 0001
  25. -- rect: left=228 top=302 right=328 bottom=269
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 2162 / 2162
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: return
  34. ----- HyperTalk script -----
  35. on mouseUp
  36.   visual dissolve
  37.   go to card "Chart"
  38. end mouseUp
  39.  
  40.  
  41.  
  42. -- part 6 (button)
  43. -- low flags: 00
  44. -- high flags: 0001
  45. -- rect: left=454 top=300 right=327 bottom=485
  46. -- title width / last selected line: 0
  47. -- icon id / first selected line: 27009 / 27009
  48. -- text alignment: 1
  49. -- font id: 0
  50. -- text size: 12
  51. -- style flags: 0
  52. -- line height: 16
  53. -- part name: next
  54. ----- HyperTalk script -----
  55. on mouseUp
  56.   visual scroll left
  57.   go to card "Error Messages"
  58. end mouseUp
  59.  
  60.  
  61.  
  62. -- part contents for background part 5
  63. ----- text -----
  64. Handling Mouse Clicks
  65.  
  66. -- part contents for background part 6
  67. ----- text -----
  68.  
  69. The user can click and drag the mouse in a variety of locations: 
  70.        ‚Ä¢ in the menu bar
  71.        ‚Ä¢ in the title bar
  72.        ‚Ä¢ on any of the window contols: grow box, zoom box, scroll bars,
  73.           or close box
  74.        ‚Ä¢ in the content of the window
  75. MacApp will handle all the mouse clicks in the first three categories.  In the last case, it will call the DoMouseCommand of the view where the mouse was clicked.  You may customize this method as you wish.